package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 人员档案类型对象 file_person_file_type
 *
 * @author xxyd
 * @date 2024-11-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("file_person_file_type")
public class PersonFile extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 人员ID
     */
    private Long personId;
    /**
     * 档案顶级类型
     */
    private Long fileTopType;
    /**
     * 档案类型
     */
    private Long fileType;

    private String name;

    /**
     * 封面图
     */
    private Long coverImage;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date fileFromTime;

}
